<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<head>
    <link rel="stylesheet" type="text/css" href="/css/style_member.css" />
    <title>会员注册-笔飞美术作品</title>
    <%@include file="../common/js.jsp"%>
    <%@include file="../common/jspcommon.jsp"%>
	<%@include file="../common/css.jsp"%>
	
</head>
<body>
<div id="box">
    <%@include file="../common/header.jsp"%>
    <div id="main_div">
        <div class="site_map"><a href="/member.htm">首页</a> 》<a href="/member.htm">我的活动</a></div>
        
        <div id="member_div_2">
            <table cellpadding="0" cellspacing="0" class="member_table">
                <tr>
                    <td class="td_1" valign="top">
                        <div class="left_nav">
                        <ul>
                            <li><a href="/member.htm">控制面板</a></li>
                            <li><a href="/memberInfo.htm">个人资料</a></li>
                            <li><a href="/mOrders.htm">我的订单</a></li>
                            <li><a href="/mMade.htm">我的定制</a></li>
                            <li class="cur"><a href="/mActivity.htm">我的活动</a></li>
                            <li><a href="/mHas.htm">关注收藏欣赏</a></li>
                            <li><a href="mComment.htm">评论管理</a></li>
                            <li><a href="mPay.htm">支付保证金</a></li>
                        </ul>
                        </div>
                    </td>
                    <td class="td_2" valign="top">
                        <div><a href="#"><img src="../images/btn_syhd.jpg" alt="" /></a></div>
                        <div class="mt20">
                            <table cellpadding="10" cellspacing="1" class="member_table2">
                                <tr class="td1">
                                    <td style="width:25%; font-weight:bold;">活动编号</td>
                                    <td style="width:25%; font-weight:bold;">标题</td>
                                    <td style="width:25%; font-weight:bold;">报名时间</td>
                                    <td style="font-weight:bold;"></td>
                                </tr>
                                <c:forEach items="${pageActivity.list }" var="myActivity" varStatus="vs">
	                                	<c:if test="${vs.count%2 ==1}">
			                                <tr class="td2">
			                                    <td><a href="/showact.htm?id=${myActivity.activityId}">${myActivity.activityId}</a></td>
			                                    <td>${myActivity.artActivity.title}</td>
			                                    <td><fmt:formatDate value="${myActivity.gmtCreated}" pattern="yyyy-MM-dd" /></td>
			                                    <td><c:if test="${!myActivity.artActivity.overTime }"><a href="#" onclick="noJoin('${myActivity.activityId}')"><img src="../images/btn_qx.jpg" alt=""/></a></c:if></td>
			                                </tr>
	                                	</c:if>
	                                		<c:if test="${vs.count%2 ==0}">
				                                <tr class="td1">
				                                    <td><a href="/showact.htm?id=${myActivity.activityId}">${myActivity.activityId}</a></td>
				                                    <td>${myActivity.artActivity.title}</td>
				                                    <td><fmt:formatDate value="${myActivity.gmtCreated}" pattern="yyyy-MM-dd" />
				                                    </td>
				                                    <td><a href="#" onclick="noJoin('${myActivity.activityId}')"><img src="../images/btn_qx.jpg" alt=""/></a></td>
				                                </tr>
		                                	</c:if>
                                </c:forEach>
                            </table>
                        </div>
                        
                    </td>
                </tr>
            </table>
        </div>
         <%@include file="../common/footer.jsp" %>
    </div>
</div>
<script type="text/javascript">
	function noJoin(acId){
		$.post("/noJoin.htm", {
			acId:acId
		},function(data){
			if(data=="success"){
				window.location.href="/mActivity.htm"
			}
			if(data=="error"){
				alert("取消失败了。");
			}
		});
	}

</script>
</body>
</html>
